<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost:8080/" />
<title>4. create new issue and task</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">4. create new issue and task</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/devdocs/logout</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=username</td>
	<td>person1</td>
</tr>
<tr>
	<td>type</td>
	<td>id=password</td>
	<td>person1</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=New</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=priority</td>
	<td>label=3</td>
</tr>
<tr>
	<td>type</td>
	<td>id=description</td>
	<td>New Issue</td>
</tr>
<tr>
	<td>type</td>
	<td>id=estimatedHours</td>
	<td>10</td>
</tr>
<tr>
	<td>type</td>
	<td>id=referenceNumber</td>
	<td>123456</td>
</tr>
<tr>
	<td>select</td>
	<td>id=status</td>
	<td>label=New</td>
</tr>
<tr>
	<td>select</td>
	<td>id=status</td>
	<td>label=Awaiting Development</td>
</tr>
<tr>
	<td>select</td>
	<td>id=issueType</td>
	<td>label=Enhancement</td>
</tr>
<tr>
	<td>click</td>
	<td>css=html.CSS1Compat</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=create</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>3</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>This is a new issue</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>New Issue</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Awaiting Development</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Enhancement</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Edit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Assigned</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=requiredByDate</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=assignmentComment</td>
	<td>do this</td>
</tr>
<tr>
	<td>click</td>
	<td>css=#addAssignment &gt; form &gt; fieldset.buttons &gt; input.save</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>do this</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>person1</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=status.id</td>
	<td>label=Closed</td>
</tr>
<tr>
	<td>click</td>
	<td>id=save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=(//a[contains(text(),'Track Time')])[2]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateOfWork</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=hours</td>
	<td>2</td>
</tr>
<tr>
	<td>type</td>
	<td>id=comments</td>
	<td>comment</td>
</tr>
<tr>
	<td>click</td>
	<td>name=addTimeTracker</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>comment</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Comments</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=comment</td>
	<td>this is a comment on the comments tab</td>
</tr>
<tr>
	<td>click</td>
	<td>css=#addCommentHistory &gt; form &gt; fieldset.buttons &gt; input.save</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>this is a comment on the comments tab</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Issue</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Add New Task</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateRequired</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=task</td>
	<td>New Task for New Issue</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=create</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>New Task for New Issue</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Edit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Assigned</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=requiredByDate</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=assignmentComment</td>
	<td>ss</td>
</tr>
<tr>
	<td>click</td>
	<td>css=#addAssignment &gt; form &gt; fieldset.buttons &gt; input.save</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>ss</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=(//a[contains(text(),'Track Time')])[2]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=dateOfWork</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=1</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=hours</td>
	<td>2</td>
</tr>
<tr>
	<td>click</td>
	<td>name=addTimeTracker</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>New Task for New Issue 	</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Comments</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=comment</td>
	<td>sss</td>
</tr>
<tr>
	<td>click</td>
	<td>css=#addCommentHistory &gt; form &gt; fieldset.buttons &gt; input.save</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>sss</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Checklists</td>
	<td></td>
</tr>
<tr>
	<td>selectAndWait</td>
	<td>id=checklist.id</td>
	<td>label=Unit Test</td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Unit Test</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=3</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=description</td>
	<td>Unit Test 1</td>
</tr>
<tr>
	<td>click</td>
	<td>css=p</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=updateChkList</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Task</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=reference</td>
	<td>123456789</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=_action_update</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='show-developmentTask']/ol/li[3]/span[2]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='show-developmentTask']/ol/li[3]/span[2]</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>123456789</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
